﻿@model IEnumerable<Group>
@{
    ViewBag.Title = "Groups";
}
<h2>@ViewBag.Title</h2>
<p>@Html.ActionLink("Add new >>", "GroupNew")</p>
<table class="proggy-datatable" style="width: 100%">
    <thead>
        <tr>
            <th>
                Name
            </th>
            <th>
                &nbsp;
            </th>
        </tr>
    </thead>
    <tbody>
        @foreach (var group in Model)
        { 
            <tr>
                <td>@group.GroupName
                </td>
                <td>
                    @Html.ActionLink("Edit members", "EditGroup", new { id = group.GroupId })
                    |
                    @Html.ActionLink("Delete", "DeleteGroup", new { id = group.GroupId })
                </td>
            </tr>
        }
    </tbody>
</table>
